Lucida: An Analyzing Program Browser

نویسندگان

  • Derek Rayside
  • Lucy Mendel
  • Robert Seater
  • Daniel Jackson
چکیده

class Subject { private List observers = new LinkedList(); void addObserver(Observer o) { observers.add(o); } protected void notifyObservers() { for (Iterator i = observers.iterator(); i.hasNext();) { ((Observer) i.next()).update(this); } } } class ConcreteSubject extends Subject { private final Date date = new Date(); void setDate(long milli) { date.setTime(milli); notifyObservers(); } Date getDate() {return date;} } interface Observer { void update(Subject s); } class ConcreteObserver implements Observer { private final ConcreteSubject s; ConcreteObserver(ConcreteSubject s) { this.s = s; s.addObserver(this); } void update(Subject s) { if (this.s == s) System.out.println(s.getDate()); } } Figure 3 Ownership contrasted with extraordinary uses for observer design pattern example

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Mode of origin and sources of genotypic diversity in triploid gynogenetic fish clones (Poeciliopsis: Poeciliidae).

Most tributaries of the Río Fuerte in northwestern Mexico contain one or more clones of allotriploid fish of the genus Poeciliopsis. We used multilocus allozyme genotypes and mitochondrial DNA (mtDNA) haplotypes to examine several potential modes of origin of these gynogenetic all-female fish. The allozyme studies corroborated earlier morphological work revealing the hybrid constitution of two ...

متن کامل

SafeDispatch: Securing C++ Virtual Calls from Memory Corruption Attacks

Several defenses have increased the cost of traditional, low-level attacks that corrupt control data, e.g. return addresses saved on the stack, to compromise program execution. In response, creative adversaries have begun circumventing these defenses by exploiting programming errors to manipulate pointers to virtual tables, or vtables, of C++ objects. These attacks can hijack program control fl...

متن کامل

A Case Study in Architectural Analysis: The Evolution of the Modern Web Browser

A reference architecture for a domain captures the fundamental subsystems common to systems of that domain, as well as the relationships between these subsystems. A reference architecture can be useful both at design time and during maintenance: it can improve understanding of a given system, aid in analyzing trade-offs between different design options, or serve as a template for designing new ...

متن کامل

Coumarins from Angelica lucida L.--antibacterial activities.

The first phytochemical investigation of the fruits of Angelica lucida has led to the isolation and characterization of five known coumarins (imperatorin, isoimperatorin, heraclenol, oxypeucedanin hydrate and heraclenin). All isolated compounds were identified by means of spectral and literature data. The extracts and the isolated constituents from A. lucida have been also evaluated for their a...

متن کامل

Architecture and evolution of the modern web browser

A reference architecture for a domain captures the fundamental subsystems common to systems of that domain, as well as the relationships between these subsystems. A reference architecture can be useful both at design time and during maintenance: it can improve understanding of a given system, aid in analyzing trade-offs between different design options, or serve as a template for designing new ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2005